package com.ktgj.flight.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ktgj.flight.mapper.ProvinceMapper;
import com.ktgj.flight.domain.Province;
import com.ktgj.flight.service.IProvinceService;

/**
 * 省份Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-10-26
 */
@Service
public class ProvinceServiceImpl implements IProvinceService 
{
    @Autowired
    private ProvinceMapper provinceMapper;

    /**
     * 查询省份
     * 
     * @param provinceId 省份ID
     * @return 省份
     */
    @Override
    public Province selectProvinceById(Long provinceId)
    {
        return provinceMapper.selectProvinceById(provinceId);
    }

    /**
     * 查询省份列表
     * 
     * @param province 省份
     * @return 省份
     */
    @Override
    public List<Province> selectProvinceList(Province province)
    {
        return provinceMapper.selectProvinceList(province);
    }

    /**
     * 新增省份
     * 
     * @param province 省份
     * @return 结果
     */
    @Override
    public int insertProvince(Province province)
    {
        return provinceMapper.insertProvince(province);
    }

    /**
     * 修改省份
     * 
     * @param province 省份
     * @return 结果
     */
    @Override
    public int updateProvince(Province province)
    {
        return provinceMapper.updateProvince(province);
    }

    /**
     * 批量删除省份
     * 
     * @param provinceIds 需要删除的省份ID
     * @return 结果
     */
    @Override
    public int deleteProvinceByIds(Long[] provinceIds)
    {
        return provinceMapper.deleteProvinceByIds(provinceIds);
    }

    /**
     * 删除省份信息
     * 
     * @param provinceId 省份ID
     * @return 结果
     */
    @Override
    public int deleteProvinceById(Long provinceId)
    {
        return provinceMapper.deleteProvinceById(provinceId);
    }
}
